import React from 'react';

function TodoHeader(props) {
    return (
        <div className="todo-header">
            <input type="text" onKeyUp={props.addTask} placeholder="请输入你的任务名称，按回车键确认"/>
        </div>
    );
}

export default TodoHeader;